import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
from selenium.webdriver.support.select import Select
testCase="DBshop016_后台商品管理-删除侧边设置流程"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','管理分类','前台侧边设置')
firefox.find_element_by_link_text('删除').click()
firefox.switch_to.alert.accept()

# try:
#     firefox.find_element_by_xpath('//td[contains(.,"%s")]'%goodsClassName).is_displayed()
#     writeLog("%s 测试失败"%testCase)
#     getPhoto(firefox)
# except:
#     writeLog("%s 测试通过" % testCase)

firefox.quit()
